package com.app.model;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * Created with IntelliJ IDEA.
 * User: cnprinces
 * Date: 13-1-19
 * Time: 上午10:12
 * To change this template use File | Settings | File Templates.
 */

/**
 * 资源菜单
 */
@Entity
@Table(name = "Goods_Type")
public class Goods_Type implements Serializable {
    @Id
    @GenericGenerator(name = "Goods_TypeGenerator", strategy = "native") //这个是hibernate的注解
    @GeneratedValue(generator = "Goods_TypeGenerator") //使用uuid的生成策略
    private Integer id;
    private Integer parentId;
    private String goodsName; //商品名称
    private String goodsNo;//商品编号
    private String sort;  //暂时预留字段

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public String getGoodsNo() {
        return goodsNo;
    }

    public void setGoodsNo(String goodsNo) {
        this.goodsNo = goodsNo;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }
}
